import { useRouter } from "vue-router";

import { defineComponent } from "vue";
import "./index.scss";

import img from "@/assets/images/403.png";
export default defineComponent({
	setup() {
		return () => {
			const router = useRouter();
			return (
				<div class="not-container">
					<img src={img} class="not-img" alt="403" />
					<div class="not-detail">
						<h2>403</h2>
						<h4>抱歉，您无权访问该页面</h4>
						<el-button
							type="primary"
							onClick={() => {
								router.back();
							}}
						>
							返回
						</el-button>
					</div>
				</div>
			);
		};
	}
});
